package com.cherry.common.constant;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * 字符编码常量
 *
 * @author sinbad.cheng
 */
public interface Charsets {

    String GBK_NAME = "GBK";

    String US_ASCII_NAME = "US-ASCII";

    String ISO_8859_1_NAME = "ISO-8859-1";

    String UTF_8_NAME = "UTF-8";

    String UTF_16_NAME = "UTF-16";

    String UTF_16BE_NAME = "UTF-16BE";

    String UTF_16LE_NAME = "UTF-16LE";

    Charset GBK = Charset.forName(GBK_NAME);

    Charset US_ASCII = StandardCharsets.US_ASCII;

    Charset ISO_8859_1 = StandardCharsets.ISO_8859_1;

    Charset UTF_8 = StandardCharsets.UTF_8;

    Charset UTF_16 = StandardCharsets.UTF_16;

    Charset UTF_16BE = StandardCharsets.UTF_16BE;

    Charset UTF_16LE = StandardCharsets.UTF_16LE;

}